#include <stdio.h>

// 【函数】测试头文件是否导入成功
void hello()
{
    printf("[Module Info] Import Successfully!\n\n");
}

// 【函数】显示（打印）数组
void display_array(int FP_array[10])
{
    int i;
    for (i = 0; i < 10; i++)
    {
        printf("%d  ", FP_array[i]);
    }
}

// 【函数】交换两数 [无效]
void exchange_no_use(int num_1, int num_2)
{
    int trans;
    trans = num_1;
    num_1 = num_2;
    num_2 = trans;
}

// 【函数】交换两数 [有效但不推荐]
void exchange_not_recommend(int FP_array[], int index_1, int index_2)
{
    int trans;
    trans = FP_array[index_1];
    FP_array[index_1] = FP_array[index_2];
    FP_array[index_2] = trans;
}

// 【函数】交换两数（整型）
void exchange(int *p_num_1, int *p_num_2)
{
    int trans;
    trans = *p_num_1;
    *p_num_1 = *p_num_2;
    *p_num_2 = trans;
}

// 【函数】交换两数 [也无效]
void exchange_no_use_too(int num_1, int num_2)
{
    int trans;
    int *p_num_1, *p_num_2;
    p_num_1 = &num_1;
    p_num_2 = &num_2;

    trans = *p_num_1;
    *p_num_1 = *p_num_2;
    *p_num_2 = trans;
}

// 【函数】交换两数 [无效]
int exchange_test(int num_1, int num_2)
{
    int trans;
    trans = num_1;
    num_1 = num_2;
    num_2 = trans;
    return (num_1, num_2);
}
